package org.wxy.sdk.base;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.StringRes;

/**
 * Created by wxy on 2018/05/27.
 *
 * @author wxy
 * @date on 2018/05/27 11:32
 */

public interface IBaseView {
    void showToast(String tip);
    void showToast(@StringRes int strResId);
    void showLoadingDialog();
    void showLoadingDialog(@StringRes int strResId);
    void showLoadingDialog(String msg);
    void hideLoadingDialog();
    void showError(String message);
    void showError(@StringRes int strResId);
    void showError(String title, String message);
    void showError(Throwable throwable, String message);
    void refresh();
    void destroy();
    void navigation(String path);
    void navigation(String path, Bundle bundle);
    void navigation(String path, int requestCode);
    void navigation(String path, Bundle bundle, int requestCode);
    String getStringRes(@StringRes int strResId, Object ...objects);
    Context getContext();
    IBasePresenter getPresenter();
}
